package com.itheima.reflectstructdemo;

public class Test {

    public static void main(String[] args) {
        Student s1 = new Student("张三", 18, "男", "北京", 1, 100, 1);
        Teacher t1 = new Teacher("李四", 18, "男", "北京");
        Dog d1 = new Dog("旺财", "金毛");
        ReflectClass.saveObject(s1);
        ReflectClass.saveObject(t1);
        ReflectClass.saveObject(d1);
    }
}
